//引脚定义
#define KEY1_INT_GPIO_PORT         GPIOA
#define	KEY1_INT_GPIO_PIN					 GPIO_Pin_0
#define KEY1_INT_GPIO_CLK					 RCC_AHB1Periph_GPIOA
#define KEY1_INT_EXTI_PORTSOURCE	 EXTI_PortSourceGPIOA
#define KEY1_INT_EXTI_PINSOURCE		 EXTI_PinSource0
#define KEY1_INT_EXTI_LINE				 EXTI_Line0
#define KEY1_INT_EXTI_IRQ					 EXTI0_IRQn

#define KEY1_IRQHandler						 EXTI0_IRQHandler

#define KEY2_INT_GPIO_PORT         GPIOC
#define	KEY2_INT_GPIO_PIN					 GPIO_Pin_13
#define KEY2_INT_GPIO_CLK					 RCC_AHB1Periph_GPIOC
#define KEY2_INT_EXTI_PORTSOURCE	 EXTI_PortSourceGPIOC
#define KEY2_INT_EXTI_PINSOURCE		 EXTI_PinSource13
#define KEY2_INT_EXTI_LINE				 EXTI_Line13
#define KEY2_INT_EXTI_IRQ					 EXTI15_10_IRQn

#define KEY2_IRQHandler						 EXTI15_10_IRQHandler
#define digitalToggle(p,i)         {p->ODR ^=i;} 

#define BASIC_TIM                  TIM6
#define BASIC_TIM_CLK							 RCC_APB1Periph_TIM6

#define BASIC_TIM_IRQ							 TIM6_DAC_IRQn
#define BASIC_TIM_IRQHandler       TIM6_DAC_IRQHandler